c# calculate difference between two dates in days

48

c# calculate difference between two dates in days -

(EndDate - StartDate).TotalDays //double
(EndDate.Date - StartDate.Date).Days //int

get number of days between two dates c# -

(EndDate - StartDate).TotalDays

Comments

Submit
0 Comments